package com.example.mybatisdemo1;

import com.example.mybatisdemo1.controller.AccountController;
import com.example.mybatisdemo1.entity.Book;
import com.example.mybatisdemo1.service.AccountService;
import com.example.mybatisdemo1.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.transaction.TransactionDefinition;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


public class Main {

    public static void main(String[] args) {
        // 开启事务
        AccountController accountController = new AccountController();

        accountController.transferAccounts();
    }
}
